package com.example.yoga.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author liwenkai
 * @since 2021-03-11
 */
@TableName("pay_record")
public class PayRecord extends Model<PayRecord> {

    private static final long serialVersionUID = 1L;

    @TableField("payNo")
    private String payno;

    @TableField("userId")
    private Integer userid;

    @TableField("payAmount")
    private Double payamount;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    @TableField("payDate")
    private Date paydate;

    @TableField("payStatus")
    private String paystatus;


    public String getPayno() {
        return payno;
    }

    public void setPayno(String payno) {
        this.payno = payno;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Double getPayamount() {
        return payamount;
    }

    public void setPayamount(Double payamount) {
        this.payamount = payamount;
    }

    public Date getPaydate() {
        return paydate;
    }

    public void setPaydate(Date paydate) {
        this.paydate = paydate;
    }

    public String getPaystatus() {
        return paystatus;
    }

    public void setPaystatus(String paystatus) {
        this.paystatus = paystatus;
    }

    @Override
    protected Serializable pkVal() {
        return null;
    }

    @Override
    public String toString() {
        return "PayRecord{" +
        "payno=" + payno +
        ", userid=" + userid +
        ", payamount=" + payamount +
        ", paydate=" + paydate +
        ", paystatus=" + paystatus +
        "}";
    }
}
